@import '../../../src/res/theme/xxhz.scss';



.rank-page-root {
  .rank-top {
    background-image: url("https://resource.ivcheng.com/resources/images/rankbj.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    height: 272px;
    padding: 0 20px;
    margin: 20px;

    .rank-name {
      padding-top: 35px;
      padding-bottom: 10px;
      line-height: 1;

      .icon-img {
        width: 32px;
        height: 32px;
        margin-left: 5px;
      }

      color: #ebdfd0;
      font-size: 40px;
      font-weight: bold;
    }

    .rank-desc {
      line-height: 1;
      font-size: 24px;
      color: #b9a79b;
    }

    .rankbox {
      width: 100%;
      height: 76px;
      display: flex;
      margin: 76px auto 0;
      line-height: 76px;
      justify-content: space-between;

      .rank-left {
        display: flex;
        justify-content: space-between;
        width: 450px;

        .rank-Progress {
          line-height: 1;
          color: #b9a79b;
          width: 200px;

          .rank-Percent {
            font-size: 24px;
            text-align: right;
            padding-right: 25px;
            line-height: 38px;
          }
        }

        .rank-name {
          padding-top: 0;
          height: 76px;
          display: flex;
          flex-wrap: wrap;
          align-items: center;
          color: #b9a79b;
          max-width: 120px;
          font-size: 24px;
        }
      }

      .rank-right {
        font-size: 19px;
        color: #13191d;
        background: #ebdfd0;
        margin-top: 20px;
        width: 116px;
        height: 36px;
        line-height: 36px;
        text-align: center;
        border-radius: 18px;
      }
    }
  }

  .rank-center {
    padding: 0 20px;
    margin: 30px auto;

    .rank-center-title {
      font-weight: bold;
      padding: 30px 0 20px;
      color: #000;
      font-size: 30px;
    }

    .rank-ul {
      .rank-li {
        color: #666;
        font-size: 24px;
        padding: 18px 0;
        display: flex;
        justify-content: flex-start;
        align-items: center;

        .rank-li-span {
          padding-left: 18px;
        }

        &::before {
          content: "";
          width: 10px;
          display: inline-block;
          vertical-align: middle;
          height: 10px;
          background: #666;
          border-radius: 5px;
        }
      }
    }
  }

  .rank-swp {
    width: 700px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;

    .swp-item {
      width: 100%;
    }
  }

  .swp-box {
    margin-right: 20px;
    display: flex;
    padding: 10px;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.07);

    .img, .img img {
      width: 63px;
      height: 82px;
      min-width: 63px;
      min-height: 82px;
      margin-top: 4px;
    }

    .swp-item-name, .swp-item-desc, .swp-item-num {
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
    }

    .swiper-box{
      .swp-item-name {
        max-width: 100px;
      }
    }

    .swp-item-name {
      font-size: 24px;
      color: #000;
      padding-top: 20px;
      text-align: center;
    }

    .swp-item-desc {
      text-align: center;
      padding-top: 20px;
      font-size: 20px;
      color: #888;
    }

    .swp-item-num {
      text-align: center;
      padding-top: 20px;
      font-size: 28px;
      color: #333;
      font-weight: bold;

      text {
        font-size: 14px;
        padding-left: 5px;
        color: #999;
      }
    }
  }

  .swp-item:nth-child(1) {
    .img {
      filter: saturate(0);
    }
  }

  .swp-item:nth-child(2) {
    .img {
      filter: saturate(50%);
    }
  }

  .swiper-box {
    .swp-box:nth-child(1) .img {
      filter: saturate(0);
    }

    .swp-box:nth-child(2) .img {
      filter: saturate(50%);
    }
  }

  @keyframes heartbeat {
    0% {
      transform: scale(0.8, 0.8);
      opacity: 0;
    }
    50% {
      transform: scale(1, 1);
      opacity: 0.8;
    }
    100% {
      transform: scale(0.8, 0.8);
      opacity: 0;
    }
  }

  .swiper-box {
    display: flex;
    margin: 0 20px;
    font-family: "xxhz" !important;
    position: relative;

    &::after {
      content: "\e603";
      display: block;
      position: absolute;
      width: 54px;
      height: 54px;
      text-align: center;
      font-size: 50px;
      background: #fff;
      border-radius: 50%;
      top: 50%;
      margin-top: -20px;
      right: 20px;
      transform: translate(0, -50%);
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
      z-index: 100;
      color: #000;
      opacity: 0;
      animation: heartbeat 2s infinite;
      animation-iteration-count: 4;
    }
  }

  .rank-btn {
    background: $mainColor;
    height: 100px;
    line-height: 100px;
    text-align: center;
    position: fixed;
    color: #fff;
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: 32px;
  }
}
